﻿using System;

namespace SmartSiteManagementSystem.Models.Material
{
    [Serializable]
    public class MaterialInfo
    {
        #region Model

        private int _materialId;
        /// <summary>
        /// 物料自增Id
        /// </summary>
        public int MaterialId
        {
            set { _materialId = value; }
            get { return _materialId; }
        }

        private string _materialName;
        /// <summary>
        /// 物料名称
        /// </summary>        
        public string MaterialName
        {
            set { _materialName = value; }
            get { return _materialName; }
        }


        private int _catalogId;
        /// <summary>
        /// 物料分类Id
        /// </summary>
        public int CatalogId
        {
            set { _catalogId = value; }
            get { return _catalogId; }
        }


        private decimal _singleWeight;
        /// <summary>
        /// 物料单个重量
        /// </summary>
        public decimal SingleWeight
        {
            set { _singleWeight = value; }
            get { return _singleWeight; }
        }


        private int _sortOrder;
        /// <summary>
        /// 排序Id
        /// </summary>
        public int SortOrder
        {
            set { _sortOrder = value; }
            get { return _sortOrder; }
        }


        private bool _isDeleted;
        /// <summary>
        /// 删除标识
        /// </summary>
        public bool IsDeleted
        {
            set { _isDeleted = value; }
            get { return _isDeleted; }
        }



        private bool _isStop;
        /// <summary>
        /// 停用标识
        /// </summary>
        public bool IsStop
        {
            set { _isStop = value; }
            get { return _isStop; }
        }


        private string _descript;
        /// <summary>
        /// 描述
        /// </summary>
        public string Descript
        {
            get { return _descript; }
            set { _descript = value; }
        }



        private int _totalNum;
        /// <summary>
        /// 总数
        /// </summary>
        public int TotalNum
        {
            set { _totalNum = value; }
            get { return _totalNum; }
        }


        

         private DateTime _lastUpdateTime;

        /// <summary>
        /// 最后修改库存时间
        /// </summary>
        public DateTime LastUpdateTime
        {
            set { _lastUpdateTime = value; }
            get { return _lastUpdateTime; }
        }




        private DateTime _createtime;
       
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime
        {
            set { _createtime = value; }
            get { return _createtime; }
        }

        private DateTime _updatetime;
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime
        {
            set { _updatetime = value; }
            get { return _updatetime; }
        }


        #endregion

        #region 虚拟字段
        public string CatagoryName;
        #endregion
    }
}
